<template>
	<div class="block">
		<el-timeline>
			<el-timeline-item
				v-for="(info, index) in expressInfos"
				:key="index"
				placement="top"
				:timestamp="info.time"
			>
				{{ info.desc }}
			</el-timeline-item>
		</el-timeline>
	</div>
</template>

<script>
export default {
	name: "order-express-info",
	data() {
		return {
			expressInfos: []
		};
	},
	methods: {
		getExpressInfo(_sn) {
			this.service.shop.order.getExpressInfoList({ sn: _sn }).then((res) => {
				if (res.code === 0) {
					this.expressInfos = res.data;
				}
				else {
					this.$message.error('getExpressInfoList 失败,' + res.message);
				}
			});
		}
	}
};
</script>

<style scoped></style>
